import { IsNotIn, MinLength } from "class-validator";

export class UserLoginDTO {
    @IsNotIn(['',undefined, null], {message: '账号不能为空'})
    username: string;
    @MinLength(6, {message: '密码不能少于6位数'})
    password: string;
    @IsNotIn(['', undefined, null], { message: '验证码不能为空' })
    verifycode: string;
}